	import {
		createRouter,
		createWebHashHistory
	} from 'vue-router'
	import news from '@/views/news/list'
	import menzhenshoufei from '@/views/menzhenshoufei/list'
	import huanzhe from '@/views/huanzhe/list'
	import shoufeiyuan from '@/views/shoufeiyuan/list'
	import jiuzhenguahao from '@/views/jiuzhenguahao/list'
	import yaoshi from '@/views/yaoshi/list'
	import yaopinruku from '@/views/yaopinruku/list'
	import yaopinxinxi from '@/views/yaopinxinxi/list'
	import syslog from '@/views/syslog/list'
	import yaopinchuku from '@/views/yaopinchuku/list'
	import zhensuoguanliyuan from '@/views/zhensuoguanliyuan/list'
	import jianchaxiangmu from '@/views/jianchaxiangmu/list'
	import meirijiesuan from '@/views/meirijiesuan/list'
	import yishengpaiban from '@/views/yishengpaiban/list'
	import tiaobanshenqing from '@/views/tiaobanshenqing/list'
	import yisheng from '@/views/yisheng/list'
	import config from '@/views/config/list'
	import huanzhebingli from '@/views/huanzhebingli/list'
	import zhensuoguanliyuanRegister from '@/views/zhensuoguanliyuan/register'
	import zhensuoguanliyuanCenter from '@/views/zhensuoguanliyuan/center'
	import yishengRegister from '@/views/yisheng/register'
	import yishengCenter from '@/views/yisheng/center'
	import shoufeiyuanRegister from '@/views/shoufeiyuan/register'
	import shoufeiyuanCenter from '@/views/shoufeiyuan/center'
	import yaoshiRegister from '@/views/yaoshi/register'
	import yaoshiCenter from '@/views/yaoshi/center'

export const routes = [{
		path: '/login',
		name: 'login',
		component: () => import('../views/login.vue')
	},{
		path: '/',
		name: '首页',
		component: () => import('../views/index'),
		children: [{
			path: '/',
			name: '首页',
			component: () => import('../views/HomeView.vue'),
			meta: {
				affix: true
			}
		}, {
			path: '/updatepassword',
			name: '修改密码',
			component: () => import('../views/updatepassword.vue')
		}
		
		,{
			path: '/zhensuoguanliyuanCenter',
			name: '诊所管理员个人中心',
			component: zhensuoguanliyuanCenter
		}
		,{
			path: '/yishengCenter',
			name: '医生个人中心',
			component: yishengCenter
		}
		,{
			path: '/shoufeiyuanCenter',
			name: '收费员个人中心',
			component: shoufeiyuanCenter
		}
		,{
			path: '/yaoshiCenter',
			name: '药师个人中心',
			component: yaoshiCenter
		}
		,{
			path: '/news',
			name: '系统公告',
			component: news
		}
		,{
			path: '/menzhenshoufei',
			name: '门诊收费',
			component: menzhenshoufei
		}
		,{
			path: '/huanzhe',
			name: '患者',
			component: huanzhe
		}
		,{
			path: '/shoufeiyuan',
			name: '收费员',
			component: shoufeiyuan
		}
		,{
			path: '/jiuzhenguahao',
			name: '就诊挂号',
			component: jiuzhenguahao
		}
		,{
			path: '/yaoshi',
			name: '药师',
			component: yaoshi
		}
		,{
			path: '/yaopinruku',
			name: '药品入库',
			component: yaopinruku
		}
		,{
			path: '/yaopinxinxi',
			name: '药品信息',
			component: yaopinxinxi
		}
		,{
			path: '/syslog',
			name: '操作日志',
			component: syslog
		}
		,{
			path: '/yaopinchuku',
			name: '药品出库',
			component: yaopinchuku
		}
		,{
			path: '/zhensuoguanliyuan',
			name: '诊所管理员',
			component: zhensuoguanliyuan
		}
		,{
			path: '/jianchaxiangmu',
			name: '检查项目',
			component: jianchaxiangmu
		}
		,{
			path: '/meirijiesuan',
			name: '每日结算',
			component: meirijiesuan
		}
		,{
			path: '/yishengpaiban',
			name: '医生排班',
			component: yishengpaiban
		},
		{
			path: '/tiaobanshenqing',
			name: '调班申请',
			component: tiaobanshenqing
		}
		,{
			path: '/yisheng',
			name: '医生',
			component: yisheng
		}
		,{
			path: '/config',
			name: '轮播图',
			component: config
		}
		,{
			path: '/huanzhebingli',
			name: '患者病例',
			component: huanzhebingli
		}
		]
	},
	{
		path: '/zhensuoguanliyuanRegister',
		name: '诊所管理员注册',
		component: zhensuoguanliyuanRegister
	},
	{
		path: '/yishengRegister',
		name: '医生注册',
		component: yishengRegister
	},
	{
		path: '/shoufeiyuanRegister',
		name: '收费员注册',
		component: shoufeiyuanRegister
	},
	{
		path: '/yaoshiRegister',
		name: '药师注册',
		component: yaoshiRegister
	},
]

const router = createRouter({
	history: createWebHashHistory(process.env.BASE_URL),
	routes
})

export default router
